/**
 * 基础路由
 * @type { *[] }
 * meta:{
 *      title:'首页' ,  //type:String   页面标题
 *      keepAlive：false, // type:Boolean 页面是否缓存 回退时 不会刷新页面
 *      needLogin:false , // type:Boolean  是否需要登录
 *      forbiddenAnimation:false,//type:Boolean 是否加转场动画
 * }
 */
export const constantRouterMap = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/home'),
    meta: {
      title: '首页',
      keepAlive: false,
      needLogin: true
    }
  },
  {
    path: '/wxlogin',
    name: 'WXLogin',
    component: () => import('@/views/public/wxlogin'),
    meta: {
      title: '授权登录',
      keepAlive: false,
      needLogin: false
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/public/login'),
    meta: {
      title: '授权登录',
      keepAlive: false,
      needLogin: false
    }
  },
  {
    path: '*',
    name: 'NotFound',
    component: () => import('@/views/public/404'),
    meta: {
      title: '打开失败-404',
      keepAlive: false,
      needLogin: false
    }
  }
]
